import Vue from 'vue'
import Vuex from 'vuex'
import moduleCart from '@/store/cart.js'
import moduleUser from '@/store/user.js'
import moduleCollection from '@/store/collection.js'
import moduleOrder from '@/store/order.js'

Vue.use(Vuex)

const store = new Vuex.Store({
  modules:{
    // 指定访问的路径，以后都要从m_cart访问
    'm_cart':moduleCart,
    'm_user':moduleUser,
    'm_collection':moduleCollection,
    'm_order':moduleOrder,
  },
})

export default store